package com.simtop.picture.mapper;

import com.simtop.picture.pojo.Role;
import com.simtop.picture.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper {
    User login(User user);

    List<Role> getRole();

    int register(User user);

    User checkEmail(@Param("email") String email);

    int updatePassword(User user);



}
